﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Armor
		Group                          = ArmorHardeners
		ModuleClass                    = Chemical
		Module                         = repro i chemical armor
		CpuUsage                       = 25.00 TF
		ReactorUsage                   = 5.00 RP
		ActiveChemicalResistance       = 110 points (52.38%)
		PassiveChemicalResistance      = 25 points (20.00%)
		Type                           = Active
		Slot                           = Legs
		TechnologicalLevel             = T3
		Mass                           = 100.00 kg
		PackedVolume                   = 0.50 U
		Volume                         = 1.00 U
		AccumulatorConsumption         = 13.00 AP
		CycleTime                      = 10.00 sec
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// RePro I. chemical armor module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:53</remarks>
    public sealed class ReproIChemicalArmor : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="ReproIChemicalArmor"/> class.
        /// </summary>
        public ReproIChemicalArmor()
            : base(
            "RePro I. chemical armor",
            "",
            ModuleMetaGroupsEnum.Armor,
            ModuleGroupsEnum.ArmorHardeners,
            TechnologyLevelsEnum.Level3,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(ArmorModuleCpuUsage<double>),25.00),
				new LazyFeature(typeof(ArmorModuleReactorUsage<double>),5.00),
				new LazyFeature(typeof(AccumulatorUsage<double>),13.00),
				new LazyFeature(typeof(CycleTime<double>),10.00),
				new LazyFeature(typeof(ModuleMass<double>),100.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 100.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ChemicalResistance, 110){ ActivationState = ModuleActivationTypesEnum.Active, Unit = UnitsEnum.Points, DisplayName = "Chemical resistance"  },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ChemicalResistance, 25){ ActivationState = ModuleActivationTypesEnum.Passive, Unit = UnitsEnum.Points, DisplayName = "Chemical resistance"  }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Legs; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}